package com.module.business.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengluqiang
 * @since 2019-03-04
 */
@Data
@Accessors(chain = true)
public class Items extends Model<Items> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String city;
    private Double price;
    private Integer number;
    private String picture;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String CITY = "city";

    public static final String PRICE = "price";

    public static final String NUMBER = "number";

    public static final String PICTURE = "picture";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
